<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
@include("admin.public.head");
<title>MWS Admin - Charts</title>

</head>

<body>

	<div id="mws-themer">
    	<div id="mws-themer-hide"></div>
        <div id="mws-themer-content">
        	<div class="mws-themer-section">
	        	<label for="mws-theme-presets">Presets</label> <select id="mws-theme-presets"></select>
            </div>
            <div class="mws-themer-separator"></div>
            <div class="mws-themer-section">
                <ul>
                    <li><span>Base Color</span> <div id="mws-base-cp" class="mws-cp-trigger"></div></li>
                    <li><span>Text Color</span> <div id="mws-text-cp" class="mws-cp-trigger"></div></li>
                    <li><span>Text Glow Color</span> <div id="mws-textglow-cp" class="mws-cp-trigger"></div></li>
                </ul>
            </div>
            <div class="mws-themer-separator"></div>
            <div class="mws-themer-section">
            	<ul>
                    <li><span>Text Glow Opacity</span> <div id="mws-textglow-op"></div></li>
                </ul>
            </div>
            <div class="mws-themer-separator"></div>
            <div class="mws-themer-section">
	            <button class="mws-button red small" id="mws-themer-getcss">Get CSS</button>
            </div>
        </div>
        <div id="mws-themer-css-dialog">
        	<div class="mws-form">
            	<div class="mws-form-row" style="padding:0;">
		        	<div class="mws-form-item">
                    	<textarea cols="auto" rows="auto" readonly="readonly"></textarea>
                    </div>
                </div>
            </div>
        </div>
    </div>
    

	@include("admin.public.top")
    
    <div id="mws-wrapper">
	@include("admin.public.left")
        
        <div id="mws-container" class="clearfix">
            <div class="container">
            
            	<div class="mws-report-container clearfix">
                	
                    <div class="mws-report-container-right">
                       <table>
                        <form action="{{url('admin/add')}}" method='post'>
                            <input type="hidden" name="_token" value="{{ csrf_token() }}">
                            <tr>
                            <td>添加分类</td>
                            <td>分类名称 <input type="text" name="cate" /></td>
                            <td>分类所属 
                                <select name="pid" id="">
                                    <option value="0">顶级分类</option>
                                    <option value="1">www</option>
                                    <option value="2">eee</option>
                                </select>
                            </td>
                            <td><input type="submit" value="添加" /></td>
                            </tr>
                            
                        </form>
                            <tr>
                                @if ($errors->any())
                                 <div class="alert alert-danger">
                                 <ul>
                                 @foreach ($errors->all() as $error)
                                 <li>{{ $error }}</li>
                                 @endforeach
                                 </ul>
                                 </div>
                                @endif
                             </tr>
                       </table>

                    </div>

                </div>
                
            	<div class="mws-panel grid_8">
                	<div class="mws-panel-header">
                    	<span class="mws-i-24 i-graph">Line Charts</span>
                    </div>
                    <div class="mws-panel-body">
                    	<div class="mws-panel-content">
                    		<div id="mws-line-chart" style="width:100%; height:300px; ">
                                <table class="am-table">
                                    <tbody>
                                        <tr>
                                            <td>分类名称</td>
                                            <td>父类pid</td>
                                            <td></td>
                                            <td class="am-table-add">
                                                <span>编辑</span>
                                            </td>
                                        </tr>
                                        @foreach  ($data as $v)
                                        <tr>
                                            <td>{{$v->name}}</td>
                                            <td>{{$v->pid}}</td>
                                            <td>2012-10-01</td>
                                            <td class="am-table-add">
                                                <span>添加</span>
                                                <span>修改</span>
                                                <span>删除</span>
                                            </td>
                                        </tr>
                                        @endforeach
                                    </tbody>
                                </table>
                            </div>
                    	</div>
                    </div>
                </div>
                
            	
            </div>
            
           
        </div>
    </div>


</body>
</html>
